﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZHDJ.Data.Models.Center;

namespace ZHDJ.Data.Mapping.Center
{
    public class PartyMembersFindOrgMap : EntityTypeConfiguration<PartyMembersFindOrg>
    {
        public PartyMembersFindOrgMap()
        {
            this.HasOptional(a => a.CreateUser)
                .WithMany()
                .HasForeignKey(a => a.CreateBy).WillCascadeOnDelete(false);
            this.HasOptional(a => a.ModifyUser)
                .WithMany()
                .HasForeignKey(a => a.ModifyBy).WillCascadeOnDelete(false);
        }
    }
}
